home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / pictetri.src / pictetri / pictetris-src / screen.h < prev    next >
C/C++ Source or Header  |  1995-12-19  |  2KB  |  52 lines

  1. /***************************************************************************\
  2. |*                                       *|
  3. |*  screen.h:    A version of Tetris to run on Linux SVGAlib console.       *|
  4. |*        This module handles all the operations concerning       *|
  5. |*        the Jlib bits.                             *|
  6. |*                                       *|
  7. |*  Authors:    Mike Taylor (mirk@uk.ac.warwick.cs) &               *|
  8. |*        Arturo Espinosa (arturo@nuclecu.unam.mx)           *|
  9. |*  Started:    Fri May 26 12:26:05 BST 1989 (tetris for terminals)       *|
  10. |*            Dic 1, 1995 (pictetris)                       *|
  11. |*                                       *|
  12. \***************************************************************************/
  13.  
  14. #include <jlib.h>
  15.  
  16. #define WALL_CHAR    '|'    /* Character used for sides of pay-area */
  17. #define FLOOR_CHAR    '='    /* Character used for base-line */
  18. #define CORNER_CHAR    '+'    /* Character used bottom left and right */
  19. #define BLANK_CHAR    ' '    /* Character used elsewhere */
  20.  
  21. #define PD_DRAW        0    /* Code to draw piece */
  22. #define PD_ERASE    1    /* Code to erase piece */
  23.  
  24. #define COL(x)  ((x)*CHAR_WIDTH('a'))
  25. #define LINE(x)  ((x)*CHAR_HEIGHT('a'))
  26.  
  27. /*-------------------------------------------------------------------------*/
  28.  
  29. extern void myrefresh ();
  30. extern void hoopy_refresh ();
  31. extern void print_msg ();
  32. extern void clear_area ();
  33. extern void setup_screen ();
  34. extern void setup_video ();
  35. extern void load_next_pcx ();
  36. extern void setup_curses ();
  37. extern void update_scores ();
  38. extern void draw_board ();
  39. extern void draw_piece ();
  40. extern void draw_title ();
  41. extern void draw_options(int bg, int nb, int s, int rl, int tt, int gl);
  42. extern void place_piece ();
  43. extern void draw_next_piece_box ();
  44. extern int can_place ();
  45. extern char scan_key(int which);
  46. extern char get_keyboard_key();
  47. extern void flush_keyboard ();
  48.  
  49. /*-------------------------------------------------------------------------*/
  50.  
  51. extern buffer_rec *offscreen;
  52.